//
//  componentBHelper.h
//  componentB
//
//  Created by dev on 04/09/2018.
//  Copyright (c) 2018 GMS. All rights reserved.
//

#import "componentBHelper.h"

NSBundle *componentb_resourceBundle(Class class) {
    static NSBundle *componentBBundle = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        componentBBundle = [NSBundle bundleForClass:class];
        if (componentBBundle) {
            NSString *resourceBundlePath = [componentBBundle pathForResource:@"componentBBundle" ofType:@"bundle"];
            if (resourceBundlePath && [[NSFileManager defaultManager] fileExistsAtPath:resourceBundlePath]) {
                componentBBundle = [NSBundle bundleWithPath:resourceBundlePath];
            }
        }
    });
    return componentBBundle;
}

@implementation componentBHelper

@end
